import React from 'react';

class Title extends React.Component{
  static propTypes: {
    visible: PropTypes.bool.isRequired,
    onClickHandler: PropTypes.func.isRequired
  }
  render() {
    return (
      <div className={this.props.visible ? 'eye' : 'eye close'} onClick={this.props.onClickHandler}></div>
    );
  }
}; 

export default Title;





